package beautiful.butterfly.distributed_task_processing_engine.tools;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

public class SpringApplicationContexttUtils implements ApplicationContextAware
{

    private static ApplicationContext applicationContext;

    public void setApplicationContext(ApplicationContext applicationContext)

            throws BeansException
    {
        SpringApplicationContexttUtils.applicationContext = applicationContext;

    }

    public static ApplicationContext getApplicationContext()
    {

        return applicationContext;

    }


}
